home *** CD-ROM | disk | FTP | other *** search
- Path: blue.cse.ogi.edu!leneis
- From: leneis@blue.cse.ogi.edu (Tony Leneis)
- Newsgroups: comp.sys.amiga.misc
- Subject: Re: AmigaOS 4.x features
- Date: 29 Mar 1996 09:57:46 GMT
- Organization: Oregon Graduate Institute (OGI), Portland, Oregon
- Message-ID: <4jgc6q$a61@reuter.cse.ogi.edu>
- References: <4j7ein$a6v@B1FF.mindspring.com> <4jc7g1$ipq@news.rhrz.uni-bonn.de> <4jfm8i$b5n@B1FF.mindspring.com>
- NNTP-Posting-Host: blue.cse.ogi.edu
-
- In article <4jfm8i$b5n@B1FF.mindspring.com>,
- Charlie Moody <chmood@photobooks.atdc.gatech.edu> wrote:
- >On 27 Mar 1996 20:12:49 GMT, Bernhard Fastenrath wrote:
- >: Charlie Moody (chmood@photobooks.atdc.gatech.edu) wrote:
- >
- >: : A couple of features *I'd* like to see:
- >
- >: : - adoption of *nix pattern-matching; it stands head, shoulders, and ankles
- >: : above the original Amiga 'system' in power, simplicity, and flexibility.
-
- I'll grant that * is easier than #?, but the Amiga pattern matching
- is more powerful than traditional UNIX globbing. As was pointed out earlier,
- you can always enable a UNIX-ish * by using a utility like wildstar.
-
- >Not just '?' and '*', but also the bracketed ranging, a la 'mv
- >fred-[a-z].pgm ram:'.
-
- You can do that now. Have you ever *tried* it before? For example:
-
- 7.Ram Disk:> dir sys:[a-ce]#?
- Workbench:Expansion (dir)
- Workbench:Classes (dir)
- Workbench:C (dir)
- Expansion.info
-
- This is with the standard shell and dir command. Look on pages 3-16 through
- 3-18 in the Amiga OS 3.1 DOS manual. Of course, if you're running 2.04 or
- earlier (I don't know about 2.1 or 3.0, though I'd assume 3.0 does square
- brackets), you can get the same effect by using the ()'s and | operators.
- For example, "dir sys:(a|b|c|e)#?". Check out pages 8-13 through 8-15 in
- the AmigaDOS Reference section of the binder that WB 2.04 came in. This was
- also present in AmigaDOS 1.0, 1.2, and 1.3, though I don't have the manuals
- nearby to look it up.
-
- The Amiga pattern matching scheme has always been, at a minimum,
- equivalent to the best UNIX shell globbing (sh, ksh, bash, csh, tcsh, etc.)
- in terms of power and flexibility. In fact, it's significantly more power-
- ful and more flexible than most UNIX shells (unless there's an oddball one
- out there that provides full extended regex matching). The main problem,
- if you want to call it a problem, is that it's different. It also can be a
- little more awkward to use for certain patterns, but it always can get the
- job done. I'd certainly take the functionality of the # operator any day
- over the UNIX * operator (provided I've got a match-any-character operator
- to go with it.)
-
- -Tony
- --
- =====///===Hi!==I'm=a=.signature=virus!==Copy=me=to=your=.signature!===///==
- __ /// leneis@cse.ogi.edu From the desk of: Hillary, __ ///
- \\\/// tony@plaza.ds.adp.com -->Tony Leneis<-- Gennifer, \\\///Only
- \XX/ aleneis@gauss.math.hmc.edu HMC '91 Go Stags! AND NOW US!\XX/Amiga
-